package com.windmill.bean;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Set;

public class ThemeCard implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//id, name,Difficulty,PublishTime,PickRate, Enable, Prize,Score,color, gift, text,
	//card1_id,..,cardn_id,type,version,time,offtime,flash_src_tid
	
	//[40,'时尚男套装',1,1251970023,0,1,100,200,0xffffff,'24','',
	//[66,65,64,39,38,37,36,35,33,32,31,30,29],0,4,1309831119,0,0,1]
	private int id; //0 
	private String name;
	private int difficulty; 
	private int publishTime;
	private int pickRate;
	private int enable;//5
	private int prize;
	private int score;
	private int color;
	private Set<Gift> gift;
	private String text;//10
	private Card[] cards;
	private int type;
	private int version;
	private int time;
	private int offtime;//15
	private int flashSrcTid;
	private int unKnow;
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getDifficulty() {
		return difficulty;
	}
	public void setDifficulty(int difficulty) {
		this.difficulty = difficulty;
	}
	public int getPublishTime() {
		return publishTime;
	}
	public void setPublishTime(int publishTime) {
		this.publishTime = publishTime;
	}
	
	public int getPickRate() {
		return pickRate;
	}
	public void setPickRate(int pickRate) {
		this.pickRate = pickRate;
	}
	public int getEnable() {
		return enable;
	}
	public void setEnable(int enable) {
		this.enable = enable;
	}
	public int getPrize() {
		return prize;
	}
	public void setPrize(int prize) {
		this.prize = prize;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public int getColor() {
		return color;
	}
	public void setColor(int color) {
		this.color = color;
	}
	public Set<Gift> getGift() {
		return gift;
	}
	public void setGift(Set<Gift> gift) {
		this.gift = gift;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	
	public Card[] getCards() {
		return cards;
	}
	public void setCards(Card[] cards) {
		this.cards = cards;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public int getTime() {
		return time;
	}
	public void setTime(int time) {
		this.time = time;
	}
	public int getOfftime() {
		return offtime;
	}
	public void setOfftime(int offtime) {
		this.offtime = offtime;
	}
	public int getFlashSrcTid() {
		return flashSrcTid;
	}
	public void setFlashSrcTid(int flashSrcTid) {
		this.flashSrcTid = flashSrcTid;
	}
	public int getUnKnow() {
		return unKnow;
	}
	public void setUnKnow(int unKnow) {
		this.unKnow = unKnow;
	}
	@Override
	public String toString() {
		return "ThemeCard [id=" + id + ", name=" + name + ", difficulty="
				+ difficulty + ", publishTime=" + publishTime + ", pickRate="
				+ pickRate + ", enable=" + enable + ", prize=" + prize
				+ ", score=" + score + ", color=" + color + ", gift="
				+ gift.toArray() + ", text=" + text + ", cards="
				+ Arrays.toString(cards) + ", type=" + type + ", version="
				+ version + ", time=" + time + ", offtime=" + offtime
				+ ", flashSrcTid=" + flashSrcTid + ", unKnow=" + unKnow + "]";
	}
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof ThemeCard){
			if(this.id==((ThemeCard)obj).getId()){
				return true;
			}
		}
		return false;
	}
	
}
